.class public Lcom/xingbook/ui/overclass/PasterScrollView;
.super Landroid/widget/ScrollView;


# instance fields
.field private a:Z

.field private b:Lcom/xingbook/ui/a/ab;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->a:Z

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/PasterScrollView;->setVerticalScrollBarEnabled(Z)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/xingbook/ui/a/ab;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->a:Z

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/PasterScrollView;->setVerticalScrollBarEnabled(Z)V

    iput-object p2, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->b:Lcom/xingbook/ui/a/ab;

    return-void
.end method


# virtual methods
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    const/4 v0, 0x1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :cond_0
    :goto_0
    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->a:Z

    if-nez v1, :cond_2

    invoke-super {p0, p1}, Landroid/widget/ScrollView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    if-eqz v1, :cond_2

    :goto_1
    return v0

    :pswitch_0
    iget-object v1, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->b:Lcom/xingbook/ui/a/ab;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {v1, v2, v3, v0}, Lcom/xingbook/ui/a/ab;->a(IIZ)V

    goto :goto_0

    :pswitch_1
    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->a:Z

    if-nez v1, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/PasterScrollView;->getLeft()I

    move-result v2

    int-to-float v2, v2

    cmpg-float v1, v1, v2

    if-ltz v1, :cond_1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/PasterScrollView;->getRight()I

    move-result v2

    int-to-float v2, v2

    cmpl-float v1, v1, v2

    if-lez v1, :cond_0

    :cond_1
    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->a:Z

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_1

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public setDragOutList(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/overclass/PasterScrollView;->a:Z

    return-void
.end method
